import http from '@/common/http.js'

export async function addResume(data) { //用户添加简历
	return await http({
		url: '/api/hire/addResume',
		method: 'POST',
		data: data
	})
}
export async function getResume() { //获取用户简历
	return await http({
		url: '/api/hire/getResume',
		method: 'GET',
	})
}
export async function updateResume(data) { //修改用户简历
	return await http({
		url: '/api/hire/updateResume',
		method: 'POST',
		data: data
	})
}

export async function recommendList(data) { //获取推荐岗位
	return await http({
		url: '/api/hire/recommend',
		method: 'GET',
		data: data
	})
}

export async function stationInfo(data) { //根据ID获取岗位详情
	return await http({
		url: '/api/hire/stationInfo',
		method: 'GET',
		data: data
	})
}

export async function careerFairList(data) { //招聘会列表
	return await http({
		url: '/api/hire/careerFairList',
		method: 'GET',
		data: data
	})
}

export async function careerFairInfo(data) { //招聘会详情
	return await http({
		url: '/api/hire/careerFair',
		method: 'GET',
		data: data
	})
}

export async function serachPost(data) { //搜索岗位
	return await http({
		url: '/api/hire/search',
		method: 'GET',
		data: data
	})
}


export async function companyInfo(data) { //根据ID获取公司信息
	return await http({
		url: '/api/hire/companyInfo',
		method: 'GET',
		data: data
	})
}

export async function careerCompanys(data) { //获取招聘会公司列表
	return await http({
		url: '/api/hire/careerCompanys',
		method: 'GET',
		data: data
	})
}

export async function careerStations(data) { //获取招聘会岗位列表
	return await http({
		url: '/api/hire/careerStations',
		method: 'GET',
		data: data
	})
}

export async function getOverStation(data) { //用户投放简历
	return await http({
		url: '/api/hire/getOverStation',
		method: 'GET',
		data: data
	})
}

export async function dictionary(data) { //获取招聘字典
	return await http({
		url: '/api/hire/dictionary',
		method: 'GET',
		data: data
	})
}

export async function getTypeTree() { //岗位类型
	return await http({
		url: '/api/hire/getTypeTree',
		method: 'GET'
	})
}


export async function intention(data) { //岗位类型
	return await http({
		url: '/api/intention',
		method: 'POST',
		data: data
	})
}

export async function intentionList() { //岗位类型
	return await http({
		url: '/api/intention/list',
		method: 'GET',
	})
}

export async function delIntention(id) { //岗位类型
	return await http({
		url: `/api/intention/del/${id}`,
		method: 'GET',
	})
}

export async function myDelivery(id) { //我的投递
	return await http({
		url: `/api/hire/user/resumes`,
		method: 'GET',
	})
}